#include <iostream>
#include <stdio.h>
#include <string>
#include <fstream>

#include "ui.cpp"
#include "file_manager.cpp"

using namespace std;

int main() {
    UI ui;
    ui.ShowHomepage();
    int task = 0;

    cin>>task;
    switch(task) {
        case 1: 
            {
                ui.ShowEncryptFromKeyboardPage();
                string strToBeEncrypted;
                fflush(stdin);
                getline(cin, strToBeEncrypted);
                string encryptedString("");
                encryptedString = cryptor.Encrypt(strToBeEncrypted);
                //in ra man hinh chuoi da dc ma hoa
                cout<<encryptedString;
            }

            break;
        case 2:
            ui.ShowEncryptFromFilePage();
            break;
        case 3:
            ui.ShowDecryptFromKeyboardPage();
            break;
        case 4:
            ui.ShowDecryptFromFilePage();
            break;
        case 5:
            exit(1);
            break;
        default:
            break;
    }
    getchar(); //pause
    return 0;
}